<template>
  <div class="item-description">
    <div class="img">
      <img class="img" :src="info.img" draggable="false" />
    </div>

    <div>
      <p class="title">{{ info.title }}</p>
      <p class="describe">{{ info.describe }}</p>
      <p class="time">{{ info.time }}</p>
    </div>
  </div>
</template>

<script lang="ts" setup name="client">
defineProps<{
  info: {
    title: string
    img: string
    describe: string
    time: string
  }
}>()
</script>

<style lang="less" scoped>
.item-description {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 0.75rem rgba(0, 110, 245, 0.25);
  padding: 15px;
  margin: 20px;

  .img {
    vertical-align: middle;
    width: 100%;
    // height: 180px;
  }
  .title {
    // display: flex;
    // justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
    margin: 0;
    font-size: 1rem;
    // text-align: center;
    font-weight: 600;
  }
  .describe {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 1rem 0;
    color: #797979;
  }
  .time {
    margin: 0;
    color: #797979;
    font-size: 1rem;
  }
}
</style>
